#include<stdio.h>
#include<stdlib.h>
#include "dominion.h"
#include "dominion_helpers.h"

int main(int argc, char *argv[])
{
    struct gameState* game;
    int *bonus = malloc(sizeof(int));
    int *carddeck;
    carddeck = kingdomCards(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
    int test;

    game = newGame();
    initializeGame(2, carddeck, 24, game);
    game->handCount[1] = 3;
    game->numActions = 1;
    game->whoseTurn = 1;

    test = cardEffect(16, 2, 4, 5, game, 2, bonus);

    if (game->handCount[1] == 3 && game->numActions == 2)
        printf("great hall test PASSED.\n");
    else {
        printf("great hall test FAILED.\n");
        printf("handcount is %i but should be 3\n", game->handCount[1]);
        printf("numActions is %i but should be 2\n", game->numActions);
    }

    free(bonus);
    return 0;
}
